<h2 class='nika_page_title'>Общение</h2>

<?php include_partial('menu') ?>

<div class="paginate">
<?php // if ($pager->haveToPaginate()): ?>
    <?php include_partial('paginate', array('pager' => $pager)) ?>
<?php // endif; ?>
</div>

<table id="sfForumCategoryIndex">
  <thead>
    <tr>
      <th>Название раздела</th>
      <th>Тем</th>
      <th>Создан</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($pager->getResults() as $category): ?>
    <tr onclick="document.location.href='<?php echo url_for('sfForumTopic/index?category_id='.$category->getId()) ?>'">
      <td>
            <?php echo link_to($category->getName(),'sfForumTopic/index?category_id='.$category->getId()); ?><br />
            <?php echo $category->getDescription() ?>
      </td>
      <td class='textcenter'><?php echo $category->getHits() ?></td>
      <td class='textcenter'><?php echo $category->getCreatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

<div class="paginate">
<?php // if ($pager->haveToPaginate()): ?>
    <?php include_partial('paginate', array('pager' => $pager)) ?>
<?php // endif; ?>
</div>
